package cn.tedu.spring.dibase;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class TestBook {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("bean.xml");
        Book book = context.getBean(Book.class);
//        Book book = (Book) context.getBean("book");
//        Book book = context.getBean("book", Book.class);
        System.out.println(book);

    }
}
